package Game;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.util.ArrayList;

public class Explosion {
	private Sprite sprite;
	public IndexCounter index;
	int x,y;
	public Explosion(Sprite sprite,ArrayList<Explosion> expo,int x,int y){
		this.sprite=sprite;
		index=new IndexCounter(10,1);
		this.x=x;
		this.y=y;
	}
	public void update(ArrayList<Explosion> expo){
		index.Counter();
	}
	public void Draw(Graphics g,int index,int nx,int ny){
 	}
 	public void Draw(Graphics2D g2d,int nx,int ny){
 		sprite.Draw(g2d, x, y, index.getIndex());
 	}
}
